package mobi.hami.huapin.util;

import org.apache.commons.lang3.StringUtils;

/**
 *  数组帮助类
 *
 * @author 阿飞 jijunjian@hami.mobi
 * @date 2018/3/7 16:42
 */
public class Arrays {

    /**
     *数组返回字符串
     *
     * @param ids
     * @return
     */
    public  static  String join(Long[] ids)
    {
        return  StringUtils.join(ids,",");

        /*
        if (ids.length <= 0)
        {
            return  "";
        }

        StringBuilder sb = new StringBuilder();
        for (long id : ids)
        {
            sb.append(id);
            sb.append(",");
        }

        return sb.substring(0,sb.length()-1);
        */
    }
}
